﻿using RedRiver.Framework.XtraCommon.UserAuthentication;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.ComponentModel;

namespace RedRiver.Framework.XtraCommon.Test
{
    
    
    /// <summary>
    ///这是 TestUserContext_BaseInfo 的测试类，旨在
    ///包含所有 TestUserContext_BaseInfo 单元测试
    ///</summary>
    [TestClass()]
    public class TestUserContext_BaseInfo
    {


        private TestContext testContextInstance;

        /// <summary>
        ///获取或设置测试上下文，上下文提供
        ///有关当前测试运行及其功能的信息。
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region 附加测试特性
        // 
        //编写测试时，还可使用以下特性:
        //
        //使用 ClassInitialize 在运行类中的第一个测试前先运行代码
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //使用 ClassCleanup 在运行完类中的所有测试后再运行代码
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //使用 TestInitialize 在运行每个测试前先运行代码
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //使用 TestCleanup 在运行完每个测试后运行代码
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///BaseInfo 构造函数 的测试
        ///</summary>
        [TestMethod()]
        public void TestUserContext_BaseInfoConstructor()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo();
            Assert.Inconclusive("TODO: 实现用来验证目标的代码");
        }

        /// <summary>
        ///BeginEdit 的测试
        ///</summary>
        [TestMethod()]
        public void TestBeginEdit()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo(); // TODO: 初始化为适当的值
            target.BeginEdit();
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///CancelEdit 的测试
        ///</summary>
        [TestMethod()]
        public void TestCancelEdit()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo(); // TODO: 初始化为适当的值
            target.CancelEdit();
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///EndEdit 的测试
        ///</summary>
        [TestMethod()]
        public void TestEndEdit()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo(); // TODO: 初始化为适当的值
            target.EndEdit();
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///OnObjectChanged 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestOnObjectChanged()
        {
            UserContext_Accessor.BaseInfo target = new UserContext_Accessor.BaseInfo(); // TODO: 初始化为适当的值
            EventArgs e = null; // TODO: 初始化为适当的值
            target.OnObjectChanged(e);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///OnPropertyChanged 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestOnPropertyChanged()
        {
            UserContext_Accessor.BaseInfo target = new UserContext_Accessor.BaseInfo(); // TODO: 初始化为适当的值
            PropertyChangingEventArgs e = null; // TODO: 初始化为适当的值
            target.OnPropertyChanged(e);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///SetProperty 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestSetProperty()
        {
            UserContext_Accessor.BaseInfo target = new UserContext_Accessor.BaseInfo(); // TODO: 初始化为适当的值
            string propertyName = string.Empty; // TODO: 初始化为适当的值
            object value = null; // TODO: 初始化为适当的值
            target.SetProperty(propertyName, value);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///ApplicationName 的测试
        ///</summary>
        [TestMethod()]
        public void TestApplicationName()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.ApplicationName = expected;
            actual = target.ApplicationName;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///BaseUrl 的测试
        ///</summary>
        [TestMethod()]
        public void TestBaseUrl()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.BaseUrl = expected;
            actual = target.BaseUrl;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///CurrentDate 的测试
        ///</summary>
        [TestMethod()]
        public void TestCurrentDate()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo(); // TODO: 初始化为适当的值
            DateTime expected = new DateTime(); // TODO: 初始化为适当的值
            DateTime actual;
            target.CurrentDate = expected;
            actual = target.CurrentDate;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///EmployeeCode 的测试
        ///</summary>
        [TestMethod()]
        public void TestEmployeeCode()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.EmployeeCode = expected;
            actual = target.EmployeeCode;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///Item 的测试
        ///</summary>
        [TestMethod()]
        public void TestItem()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo(); // TODO: 初始化为适当的值
            string key = string.Empty; // TODO: 初始化为适当的值
            object expected = null; // TODO: 初始化为适当的值
            object actual;
            target[key] = expected;
            actual = target[key];
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///UserDepCode 的测试
        ///</summary>
        [TestMethod()]
        public void TestUserDepCode()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.UserDepCode = expected;
            actual = target.UserDepCode;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///UserDepName 的测试
        ///</summary>
        [TestMethod()]
        public void TestUserDepName()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.UserDepName = expected;
            actual = target.UserDepName;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///UserFullName 的测试
        ///</summary>
        [TestMethod()]
        public void TestUserFullName()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.UserFullName = expected;
            actual = target.UserFullName;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///UserName 的测试
        ///</summary>
        [TestMethod()]
        public void TestUserName()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.UserName = expected;
            actual = target.UserName;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///Workshop 的测试
        ///</summary>
        [TestMethod()]
        public void TestWorkshop()
        {
            UserContext.BaseInfo target = new UserContext.BaseInfo(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.Workshop = expected;
            actual = target.Workshop;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
    }
}
